package com.summer.service.activemq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * Created by thinkpad on 2018/6/24.
 */
@Service
public class Consumer {

    @JmsListener(destination = "mytest.queue")
    public void receiveQueue(String text){
        System.out.println("Consumer接受到的报文为：" + text);
    }

}
